package com.smarttest.common.beans.protolcol;

import java.io.Serializable;
import java.util.Date;

public class CTBox12Alarm implements Serializable{

	
	/**  */
	private static final long serialVersionUID = 8646323194065603101L;
	private long id;						//  主键 id
	private String imei;
	private String gpsno;
	private String trucknum; 		//车辆id   sysid + truckid		   
	private int end;						//1结束	0 开始
	private int type;						//报警类型   0温度报警  1湿度报警2:传感器初始化中 3:传感器故障
	private int num;						//路数编号
//	private double tp;					//当前温湿度
	private int alarm;					//报警状态 	0 正常 1 低湿(低温)预警 2	低湿(低温)报警	3 高湿(高温)预警 4 高湿(高温)报警 5 传感器初始化中 6 传感器故障
	private double lat;					//经度
	private double lng;				//纬度
	private Date time;						//报警是 gps时间
	private Date createtime; 			//报警创建时间
	private int gtp;					//设备自身温度
	private int speed;					//速度  单位：百米每小时
	private int acc;			//ACC状态 0:关；1：开；2：无法获取状态
	private int compressor;		//压缩机状态0:关；1：开；2：无法获取状态
	private int door;		//门开关状态0:关；1：开；2：无法获取状态
	private float alarmset;	//报警设置值
	private float alarmt;	//温度值
	private float alarmm;	//湿度值
	/** 附加信息(为了兼容各种冷链设备,而增加该字段兼容额外的属性.内容以json格式保存) */
	private String addition; 
	
	/**报警期间温度极限值*/
	private float alarmLimitTemperature;
	
	/**报警期间平均温度*/
	private float alarmAverageTemperature;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getImei() {
		return imei;
	}
	public void setImei(String imei) {
		this.imei = imei;
	}
	public String getGpsno() {
		return gpsno;
	}
	public void setGpsno(String gpsno) {
		this.gpsno = gpsno;
	}
	public String getTrucknum() {
		return trucknum;
	}
	public void setTrucknum(String trucknum) {
		this.trucknum = trucknum;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getAlarm() {
		return alarm;
	}
	public void setAlarm(int alarm) {
		this.alarm = alarm;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
//	public double getTp() {
//		return tp;
//	}
//	public void setTp(double tp) {
//		this.tp = tp;
//	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public int getGtp() {
		return gtp;
	}
	public void setGtp(int gtp) {
		this.gtp = gtp;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	public int getAcc() {
		return acc;
	}
	public void setAcc(int acc) {
		this.acc = acc;
	}
	public int getCompressor() {
		return compressor;
	}
	public void setCompressor(int compressor) {
		this.compressor = compressor;
	}
	public int getDoor() {
		return door;
	}
	public void setDoor(int door) {
		this.door = door;
	}
	public float getAlarmset() {
		return alarmset;
	}
	public void setAlarmset(float alarmset) {
		this.alarmset = alarmset;
	}
	public float getAlarmt() {
		return alarmt;
	}
	public void setAlarmt(float alarmt) {
		this.alarmt = alarmt;
	}
	public float getAlarmm() {
		return alarmm;
	}
	public void setAlarmm(float alarmm) {
		this.alarmm = alarmm;
	}
	public String getAddition() {
		return addition;
	}
	public void setAddition(String addition) {
		this.addition = addition;
	}
	
    public float getAlarmLimitTemperature() {
        return alarmLimitTemperature;
    }
    
    public void setAlarmLimitTemperature(float alarmLimitTemperature) {
        this.alarmLimitTemperature = alarmLimitTemperature;
    }
    
    public float getAlarmAverageTemperature() {
        return alarmAverageTemperature;
    }
    
    public void setAlarmAverageTemperature(float alarmAverageTemperature) {
        this.alarmAverageTemperature = alarmAverageTemperature;
    }
	
}
